package com.cy.ppj.model.ao.sms;

import com.cy.ppj.model.enums.SmsType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @description: 短信验证码
 * @author: Ocean
 * @create: 2018-08-02 18:02
 **/
@Data
@ApiModel("短信验证码")
public class SmsCodeAO {

    @ApiModelProperty(value = "手机号码", required = true)
    @NotEmpty(message = "手机号码不可为空")
    private String mobile;

    @ApiModelProperty(value = "短信类型", required = true)
    @NotNull(message = "短信类型不可为空")
    private SmsType smsType;

}
